
<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimal-ui, minimum-scale=1.0, maximum-scale=1.0">
    <title>无压缩云存上传专用_伊亮</title>
    <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  </head>

  <body>
  <!--伊亮独家打造，扒拉请留下本信息，设计官网zz.8hi.com.cn-->
    <script src="https://www.layuicdn.com/layui/layui.js"></script>
<div class="head">伊亮云储存</div>

  <div class="layui-form-item layui-form-text">
 
      <textarea  id="content" class="layui-textarea" style="height:500px;"></textarea>

  </div>


<div align="center" class="upload-drag" id="upload-drag" onclick="image.click()" title="点击上传图片"><img src="https://p.pstatp.com/origin/pgc-image/c43a6e9830854012865fa520536a1f63">
<p id="stat">点击传图</p>
<input style="display:none" id="image" type="file" multiple="" name="image" accept="image/*">
</div>

<script>
layui.use('upload', function(){
  var upload = layui.upload;
   
  //制作不易，拿走使用时请声明:程序来自站长社区zz.8hi.com.cn
  var uploadInst = upload.render({
    elem: '#image' 
    ,url: 'https://www.hualigs.cn/api/upload?apiType=catbox&token=' //上传接口   后面加上你的token
  ,before: function(obj){
    layer.load(); //上传loading
  }
    ,done: function(res){

var news = "<img src=\"https://images.weserv.nl/?url="+res.data.url.catbox+"\" style=\"max-width:100%\">"+'\r\n';
var c = $('#content').text();
$('#content').text(c+news);


layer.closeAll('loading');
    }
    ,error: function(){
ue.ready(function() {
    ue.setContent('上传失败，建议你重新上传', true);
});
layer.closeAll('loading');
    }
  });
});
</script>



  </body>

</html>